package org.alex.samples.service;

import java.util.List;
import java.util.Map;

import org.alex.samples.filter.PagerModel;
import org.alex.samples.model.ExamScoreVO;
import org.alex.samples.model.ExamSubjectVO;
import org.alex.samples.model.ExamTestTypeVO;
import org.alex.samples.model.ExamTestVO;

public interface ITestService {
	
	public List<ExamTestVO> findAllTest();
	
	public List<ExamSubjectVO> getSubectList();
	
	public List<ExamTestTypeVO> getTestTypeList();
	
	public void createTest(ExamTestVO testVO) throws Exception;
	
	public ExamTestVO getTestVOById(Integer id);
	
	public void editTest(ExamTestVO testVO) throws Exception;

	public void deleteTest(Integer id)  throws Exception;
	
	public PagerModel<ExamTestVO> findAllByPage();
	
	public ExamScoreVO calculateScore(List<Integer> answerIds,Map<String, String[]> testMap, String userId,Integer subId);
	
}
